Number.prototype.CompareTo = function(value){
    if (this.valueOf() < value)
        return -1;

    if (this.valueOf() > value)
        return 1;

    return 0;
}